import React, { memo } from 'react'
import { AnchorItemWrapper } from './style' 

export default memo(function HotAnchorItem(props) {
    const {avatarUrl, nickName} = props;
    const url = `${avatarUrl}?param=40y40`;
    return (
        <AnchorItemWrapper>
            <a href="/">
                <img className="icon" src={url} />
            </a>
            <div className="content">
                <a className="title">{nickName}</a>
                <p className="desc">{nickName}</p>
            </div>
        </AnchorItemWrapper>
    )
})
